[NTG-context] Re: How can I do this?

2024-03-10 Thread Otared Kavian
Hi Hans and Hraban, Thank you both for your remarks: indeed I am aware of the commands \m{} and \dm{} in ConTeXt, but for my work with math stuff I use the usual dollar signs for inline maths, since in this way it is easier for me to read the source on the one hand, and and on the hand when

[NTG-context] Re: How can I do this?

2024-03-10 Thread Hans Hagen via ntg-context
document. Moreover you did not have a \stoptext in your file, and a math command « \m » was not written correctly. Talking of math, I personnaly prefer to enclose in-line math between dollar signs $, that is writing « $\exists x \in H$ » instead of  « \m{\exists x \in H} ». Well, better stay

[NTG-context] Re: How can I do this?

2024-03-08 Thread Henning Hraban Ramm
file, and a math command « \m » was not written correctly. Talking of math, I personnaly prefer to enclose in-line math between dollar signs $, that is writing « $\exists x \in H$ » instead of  « \m{\exists x \in H} ». Well, better stay with the modern ConTeXt approach of \m{}. Also, you can

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
» was not written correctly. Talking of math, I personnaly prefer to enclose in-line math between dollar signs $, that is writing « $\exists x \in H$ » instead of « \m{\exists x \in H} ». Also the way you write your text is somewhat « incorrect » (or as Mikael Sundqvist would put it, « interesting »…), since

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
%% \CheckSum{924} %% \CharacterTable %% {Upper-case\A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case\a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits\0\1\2\3\4\5\6\7\

Re: [NTG-context] Nested $$ in inline math

2021-12-13 Thread Hans Hagen via ntg-context
-mkiv manual, so I'm asking whether this is supported behaviour or just a bug? I would say that this is unsupported expected behaviour ;) It is better not to use $ at all (except when using it as a dollar sign when \asciimode is active). \starttext % All the same \mathematics{math $text here

Re: [NTG-context] Nested $$ in inline math

2021-12-13 Thread Taco Hoekwater via ntg-context
so > I'm asking whether this is supported behaviour or just a bug? I would say that this is unsupported expected behaviour ;) It is better not to use $ at all (except when using it as a dollar sign when \asciimode is active). > > \starttext > % All the same > \mathematics{math $text here$

Re: [NTG-context] PDF viewer poll

2019-10-14 Thread Hans Hagen
(which is then also kind of publishing a source). I'm also not sure what the real role is of publishers: are there actually still real publishers around anyway? As far as I can tell publishers haven't spent a dollar / euro on innovation anyway, so all they can be is patient: I feel no

Re: [NTG-context] XML xmldoif struggle!

2019-05-02 Thread Geert Verhaag
prompt reply! The output Euro set! is printed always, it doesn't matter whether I put EURO or DOLLAR first?! Hi Geert, my fault, the conditional should read: \xmldoif{#1}{currency[position()==1 and contains(text(),'EURO')]} {Euro set!} I hope it works fine now. Pablo -- http

Re: [NTG-context] XML xmldoif struggle!

2019-05-02 Thread Pablo Rodriguez
On 5/1/19 9:28 PM, Geert Verhaag wrote: > Hoi Pablo, > > Thanks for your prompt reply! > > The output Euro set! is printed always, it doesn't matter whether I put > EURO or DOLLAR first?! Hi Geert, my fault, the conditional should read: \xmldoif{#1}{currency[position()==1

Re: [NTG-context] XML xmldoif struggle!

2019-05-01 Thread Geert Verhaag
Hoi Pablo, Thanks for your prompt reply! The output Euro set! is printed always, it doesn't matter whether I put EURO or DOLLAR first?! Also I can't find any clue on the suggested page 49 of xml-mkiv.pdf manual, sorry! By the way, in my document it still doesn't seem to work! I'm afraid

Re: [NTG-context] XML xmldoif struggle!

2019-05-01 Thread Pablo Rodriguez
the Euro set be printed?! > > What's wrong here? The manual xml-mkiv.pdf doesn't give me any hint on > how to make this work! Hi Geert, the syntax reads \xmldoif{#1}{lpath}{action}. So your conditional may read: \xmldoif{#1}{currency[first() and contains(text(),'EURO')]} {Euro set!}

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-19 Thread Otared Kavian
le to do this by an appropriate setting of btxrendering, >> without going into the BibTeX file? >> >> Thanks in advance for any help: OK > > First of all, don't put any such formatting in the BibTeX file: that is > a LaTeX-style hack, and we have designed the ConTeX

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-18 Thread Rik Kabel
to this. Say, for example that the title contains mathematical symbols. One would be hard pressed not to include dollar-sign delimiters and math syntax! Another example could be "edition={second}" and "edition={2\high{nd}}". Of course, one could introduce conversion sets (like for mo

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-18 Thread Hans Hagen
itle contains mathematical symbols. One would be hard pressed not to include dollar-sign delimiters and math syntax! Another example could be "edition={second}" and "edition={2\high{nd}}". Of course, one could introduce conversion sets (like for months), but this gets co

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-17 Thread Alan Braslau
he dataset should contain only data, and hacks should be avoided. There is some limitation to this. Say, for example that the title contains mathematical symbols. One would be hard pressed not to include dollar-sign delimiters and math syntax! Another example could be "edition={second}" and &

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-17 Thread Hans Hagen
ng \math{x^2} clearly states what it is. TeX tradition aside, dollar signs make no sense here and you have to manually match beginning and end. Braces are matched automatically (probably depends on the editor as well). \math{x²} states what it is. However \m{x²} is cryptic and, although only tw

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Otared Kavian
ce >>> math should appear rather as displayed math. >> >> While I agree on that one, writing \math{x^2} clearly states what it >> is. TeX tradition aside, dollar signs make no sense here and you >> have to manually match beginning and end. Braces are matched >>

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Hans Hagen
s what it is. TeX tradition aside, dollar signs make no sense here and you have to manually match beginning and end. Braces are matched automatically (probably depends on the editor as well). Marco ___ If your qu

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Marco Patzer
which one might want to have a reference > math should appear rather as displayed math. While I agree on that one, writing \math{x^2} clearly states what it is. TeX tradition aside, dollar signs make no sense here and you have to manually match beginning and end. Braces are matched automat

[NTG-context] Database module: asciimode and escapechar

2013-06-08 Thread Wolfgang Schuster
Hi, there are another things that need to be fixed with the database module. 1. The quotechar character appears in the output. 2. The \asciimode command is ignored. \usemodule[database] \define[2]\TestCommand {Currency: #1, Value: #2 \par} \startbuffer[testdata] Euro,€ 100 Dollar,\$ 300

[NTG-context] Gnuplot and the dollar sign

2012-01-28 Thread Janne Junnila
\useGNUPLOTgraphic[distr_simple_1] The problem seems to be that the single dollar sign gets interpreted as the start of a math environment. I tried to look through the source code to see how I could tell context to bypass checking for certain characters, but I couldn't figure it out. Thanks for any hints! Janne

Re: [NTG-context] Gnuplot and the dollar sign

2012-01-28 Thread Mojca Miklavec
(0.5*x) + 1)*exp(-0.4*x) \stopGNUPLOTscript \useGNUPLOTgraphic[distr_simple_1] The problem seems to be that the single dollar sign gets interpreted as the start of a math environment. On one hand that is the intended default behaviour. It is very handy to be able to use plot (cos(2*x)*sin(0.5

Re: [NTG-context] Gnuplot and the dollar sign

2012-01-28 Thread Janne Junnila
using (0.01*floor($1/0.01)):(0.870456/10/0.01) smooth frequency with boxes, (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x) \stopGNUPLOTscript \useGNUPLOTgraphic[distr_simple_1] The problem seems to be that the single dollar sign gets interpreted as the start of a math environment. On one hand

[NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen
); // Raute/number sign $xstring = str_replace ( $, \\char36, $xstring ); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, \\char37, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches Und/ampersand $xstring

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Aditya Mahajan
); // Raute/number sign $xstring = str_replace ( $, \\char36, $xstring ); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, \\char37, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches Und/ampersand $xstring = str_replace

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Philipp Gesang
); // Ausrufungszeichen/ConvertToConteXt $xstring = str_replace ( \, \\char34, $xstring ); // Anführungszeichen/quotation mark $xstring = str_replace ( #, \\char35, $xstring ); // Raute/number sign $xstring = str_replace ( $, \\char36, $xstring ); // Dollar-Zeichen/dollar sign $xstring

[NTG-context] ConvertToConteXt 0.2 - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen
); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, {\\char37}, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , {\\char38}, $xstring ); // Kaufmännisches Und/ampersand $xstring = str_replace ( ', {\\char39}, $xstring ); // Apostroph/apostrophe $xstring

Re: [NTG-context] ConvertToConteXt 0.2 - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Philipp Gesang
}, $xstring ); // Raute/number sign $xstring = str_replace ( $, {\\char36}, $xstring ); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, {\\char37}, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , {\\char38}, $xstring ); // Kaufmännisches Und

Re: [NTG-context] hyphenated url

2010-10-27 Thread Steffen Wolfrum
side-effects? * You need to use \math{...} to go into math mode. $ will just give a dollar. * You need \startformula ... \stopformula to go into display math. $$...$$ will just print dollars. * _ in text mode will produce an underscore instead of an error. _ in math mode will work fine

Re: [NTG-context] hyphenated url

2010-10-26 Thread Steffen Wolfrum
for comment. Am 26.10.2010 um 00:49 schrieb Philipp Gesang: Hi Aditya, Steffen and others, I was toying around with catcode tables too. Shouldn’t it suffice to simply change % to ‘other’? This way you can keep the dollar style math. Philipp ···8

Re: [NTG-context] hyphenated url

2010-10-25 Thread Aditya Mahajan
so that % does not have its usual meaning. So, % is no longer a comment; it just typesets percentage sign. You can get a comment using \starthiding ... \stophiding. Any known side-effects? * You need to use \math{...} to go into math mode. $ will just give a dollar. * You need

Re: [NTG-context] hyphenated url

2010-10-25 Thread Wolfgang Schuster
command which end at the end of the line like a normal comment, maybe this should be added to luatex (like we have \Ustartmath ... \Ustopmath as alternative to $...$) Any known side-effects? * You need to use \math{...} to go into math mode. $ will just give a dollar. There is also \formula

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
\math{...} to go into math mode. $ will just give a dollar. * You need \startformula ... \stopformula to go into display math. $$...$$ will just print dollars. * _ in text mode will produce an underscore instead of an error. _ in math mode will work fine. The same for ^. * You need

[NTG-context] Pound sign £ output as italic dollar sign [urgent]

2010-10-20 Thread Elliot Clifton
Hello, I was just about to send my book to press when I noticed the '£' appears in my PDF as an italic dollar sign. I looked it up in the archive and google. Have tried \pound and \sterling -- nothing seems to work. It's very strange, when I output the chapter's product separately from

Re: [NTG-context] Pound sign £ output as italic dollar sign [urgent]

2010-10-20 Thread Mojca Miklavec
On Wed, Oct 20, 2010 at 11:44, Elliot Clifton wrote: Hello, I was just about to send my book to press when I noticed the '£' appears in my PDF as an italic dollar sign. \language[en] \mainlanguage[en] \enableregime[utf-8] I'm using TeX Gyre fonts. Any ideas? Do you have a minimal

Re: [NTG-context] Pound sign £ output as italic dollar sign [urgent]

2010-10-20 Thread Hans Hagen
On 20-10-2010 11:44, Elliot Clifton wrote: Hello, I was just about to send my book to press when I noticed the '£' appears in my PDF as an italic dollar sign. I looked it up in the archive and google. Have tried \pound and \sterling -- nothing seems to work. It's very strange, when I output

Re: [NTG-context] randomize

2010-04-08 Thread Wolfgang Werners-Lucchini
to - \starttext \startluacode math.randomseed(os.time()) _=math.random() \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3

Re: [NTG-context] randomize

2010-04-07 Thread Hans Hagen
Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? Hmm... which version are you using? I do get

Re: [NTG-context] randomize

2010-04-07 Thread luigi scarso
(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? Hmm

Re: [NTG-context] randomize

2010-04-07 Thread Wolfgang Werners-Lucchini
I get allways (10 times at least) the same result: - \starttext \startluacode math.randomseed(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated

Re: [NTG-context] randomize

2010-04-06 Thread Wolfgang Werners-Lucchini
as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? ConTeXt saves the random value in the tuc file to get

Re: [NTG-context] randomize

2010-04-06 Thread Aditya Mahajan
a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? Hmm... which version are you using? I do get a ranom output each time. Tested

[NTG-context] randomize

2010-04-05 Thread Wolfgang Werners-Lucchini
Hallo, I get allways (10 times at least) the same result: - \starttext \startluacode math.randomseed(os.time()) \stopluacode Encode your Name and Surname as a \startluacode local a = {'null-terminated', 'dollar-terminated', 'Pascal

Re: [NTG-context] randomize

2010-04-05 Thread Wolfgang Schuster
a = {'null-terminated', 'dollar-terminated', 'Pascal'} context('%s string', a[math.random(1,3)]) \stopluacode \stoptext - How can I randomize this? ConTeXt saves the random value in the tuc file to get the same output in each run

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Andreas Harder
), [sin] = math.sin, … But the $·$-construct is problematic. It do not work in display style (\let\calcmath\displaycalcmath) and without the dollar-signs the placement and the spacing are wrong. Thank you for your elaboration. Greetings Andreas

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
On Mon, Feb 15 2010, Andreas Harder wrote: But the $·$-construct is problematic. It do not work in display style (\let\calcmath\displaycalcmath) and without the dollar-signs the placement and the spacing are wrong. I don't know, why · doesn't work, but you can try this: local

Re: [NTG-context] I can't put footnote

2009-07-23 Thread Hans Hagen
Xan wrote: En/na Hans Hagen ha escrit: Xan wrote: No, with the version line commented I get the same error: i don't get that error so i need a smaller test file Hans I hope this serves you. Now I have another error. What fails??? you have a dollar wrong around $G({\cal P

Re: [NTG-context] I can't put footnote

2009-07-23 Thread Xan
En/na Hans Hagen ha escrit: Xan wrote: En/na Hans Hagen ha escrit: Xan wrote: No, with the version line commented I get the same error: i don't get that error so i need a smaller test file Hans I hope this serves you. Now I have another error. What fails??? you have a dollar wrong

Re: [NTG-context] I can't put footnote

2009-07-23 Thread Hans Hagen
Xan wrote: But what's the wrong dollar Sorry but I don't see it. you had %$ instead of $% - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] problems with bibliography

2009-04-16 Thread Taco Hoekwater
a clue on what is going on? Not enough information for a good answer, but you should check to make sure there are no problematic entries in the bbl file. Perhaps you added a citation recently and now the bbl reader is confused because there is an unrecognized macro or stray dollar sign, something

[NTG-context] Success Story - II

2007-10-25 Thread Vyatcheslav Yatskovsky
: \startluacode n = math.random(10,255) m = math.random(10,255) tex.print(string.format(%X, %X, n, m)) \stopluacode Encode your Name and Surname as a \startluacode a = {'null-terminated', 'dollar-terminated', 'Pascal'} tex.print( string.format('%s string.', a[math.random

Re: [NTG-context] Dense encoding, part II

2006-02-12 Thread Taco Hoekwater
instead of the ascii symbol, which is not all that usable) Then there are straightforward symbols like copyright, registered and trademark; The currencies (at least euro, dollar, pound, yen, but preferably many more) A set of itemization bullets and dashes (some fonts have square ones) The 'text

[NTG-context] space between tabulate

2005-04-08 Thread Paul Tremblay
Is there a way to put space between cells in a tabluate table? \starttabulate[|p(6cm) |p(6cm)|] \NC American Community Survey \NC Current Population Survey \NC\NR \HL \NC All dollar values for income are adjusted to latest calendar year of estimates using the Consumer Price Index for the date

Re: [NTG-context] iso latin 2 ; storm fonts

2005-03-15 Thread Hans Hagen
{\dagger} \definecharacter paragraphmark {\paragraph} \definecharacter textellipsis {\ellipsis} \definecharacter textminus {\minus} \definecharacter ostroke{\oslash} \definecharacter textdollar {\dollar} Is there some context convention

[NTG-context] small caps

2005-02-26 Thread Thomas A . Schmitz
%32 % /suppress in TeX text /exclam % 33 /quotedbl % 34 % /quotedblright in TeX text /numbersign % 35 /dollar % 36 /percent % 37 /ampersand %38 /quoteright % 39 % /quotesingle in ANSI /parenleft %40 /parenright % 41 /asterisk % 42 /plus

[NTG-context] Latin5 regime

2005-02-25 Thread luigi.scarso
%% \defineactivetoken 36 {} % DOLLAR SIGN %% \defineactivetoken 37 {} % PERCENT SIGN %% \defineactivetoken 38 {} % AMPERSAND %% \defineactivetoken 39 {} % APOSTROPHE %% \defineactivetoken 40 {} % LEFT PARENTHESIS %% \defineactivetoken 41 {} % RIGHT PARENTHESIS %% \defineactivetoken 42 {} % ASTERISK

[NTG-context] nath and \mathematics

2004-11-17 Thread Nikolai Weibull
The following has to be added to nath for spacing to work correctly: \def\mathematics#1{\relax\ifmmode#1\else$#1$\fi} adding it anywhere after \def$#1${\@@dollar{#1}} seems to work fine. The problem is that $ is redefined, but \mathematics doesn't catch on so the spacing gets all messed up

Re: [NTG-context] nath problems and patches

2004-08-25 Thread Giuseppe Bilotta
7.4.5). nath seems to have trouble with $$...$$-formulas. This file won't compile: \usemodule[nath] \starttext \placeformula $$a$$ \stoptext Error message: Runaway argument? \@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA \asciiB \ETC. ! File ended while scanning use

[NTG-context] nath problems and patches

2004-08-13 Thread Christopher Creutzig
. This file won't compile: \usemodule[nath] \starttext \placeformula $$a$$ \stoptext Error message: Runaway argument? \@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA \asciiB \ETC. ! File ended while scanning use of \convertargument. Replacing $$...$$ by \startformula...\stopformula

[NTG-context] Where's the pound (£) sign gone?

2003-08-14 Thread Mark Ainsworth
any sign. If I then use: \setupoutput[pdftex] \usetypescript[berry] \usetypescript[modern] \setupbodyfont[modern,10pt] \starttext Where has the pound $\pound$ sign gone \stoptext I end up with a dollar ($) sign. So how can I get the good old British pound sign. (No I don't want to convert

[NTG-context] Re: [NTG-context] Where's the pound (£) sign gone?

2003-08-07 Thread Helmut Schwertner
Hello Mark, try this: \setupoutput[pdftex] \usetypescript[berry][ec] \usetypescript[modern][ec] \setupbodyfont[modern,10pt] \starttext Here is the pound \pound{} sign. And there the Dollar \$ \stoptext Greetings, Helmut